package org.september.pisces.filestore.api;

import java.io.InputStream;

import org.september.pisces.filestore.entity.FileStoreItem;
import org.september.pisces.filestore.entity.FileStorePool;

public interface FileStoreService {

	String save(FileStorePool pool,byte[] data,String ext);

	String saveWithThumb(FileStorePool pool,byte[] data,String ext, boolean needThumb, float thumbRate);

	String getHttpPath(String uuid);

	InputStream getInputStream(FileStorePool pool,FileStoreItem item,  boolean thumb);

	boolean deleteFile(FileStorePool pool,FileStoreItem item);
}
